import request from "@/utils/request";

//查询退库单列表
export function refundList(params) {
  return request({
    url: "/mes/refund/info/list",
    method: "get",
    params,
  });
}

//新增退库单
export function addRefund(data) {
  return request({
    url: "/mes/refund/info",
    method: "post",
    data,
  });
}

//修改退库单
export function updateRefund(data) {
  return request({
    url: "/mes/refund/info",
    method: "put",
    data,
  });
}

// 查询退库详情
export function getIdRefund(id) {
  return request({
    url: "/mes/refund/info/" + id,
    method: "get",
  });
}

// 删除退库处理
export function delRefund(ids) {
  return request({
    url: "/mes/refund/info/" + ids,
    method: "delete",
  });
}
//导出
export function exportRefund(data) {
  return request({
    url: "/mes/refund/info/export",
    method: "post",
    data,
  });
}

//退库单明细查询
export function refundDetailList(data) {
  return request({
    url: "/mes/refund/info/Detail",
    method: "post",
    data,
  });
}
